Skip to main content

mobileAllowedOrientations

Type

function

Summary

Returns a list of the currently allowed orientations.

Syntax

mobileAllowedOrientations()

Description

Use the mobileAllowedOrientations function to find a list of the currently allowed orientations.

The mobileAllowedOrientations function returns a comma delimited list of the orientations the application supports.

note

Due to the limitation of the Android operating system, landscape left and portrait upside-down are only supported on Android 2.3 and later.

note

The iPhone X model doesn’t currently support upside-down portrait mode. Other Apple iPad and iPhone devices continue to support both standard and upside-down portait and landscape orientations.

Examples

put mobileAllowedOrientations() into theAllowedOrientations

command: mobileSetAllowedOrientations, mobileLockOrientation, mobileUnlockOrientation, mobileSetFullScreenRectForOrientations

function: mobileDeviceOrientation, mobileOrientation

message: orientationChanged

Compatibility and Support

Introduced

LiveCode 4.5.3

OS

ios

android

Platforms

mobile

Thank you for your feedback!

Was this page helpful?